package com.srwl.mytx.service;


import com.srwl.mytx.domain.CommonResult;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * 红包=Coupon (优惠卷)
 */
public interface CouponService {
    /**
     * 发送金币红包
     *
     * @param body
     * @return
     */
    @POST("/user/sendSingleCoupon")
    Call<CommonResult> sendSingleCoupon(@Body Object body);

    @POST("/user/sendMultipleCoupon")
    Call<CommonResult> sendMultipleCoupon(@Body Object body);

    @POST("/user/receiveSingleCoupon")
    Call<CommonResult> receiveSingleCoupon(@Body Object body);

    /**
     * 接收一对多红包
     *
     * @param body
     * @return
     */
    @POST("/user/receiveMultipleCoupon")
    Call<CommonResult> receiveMultipleCoupon(@Body Object body);

    /**
     * 查询红包详情和红包接收者信息
     * 一对一红包使用
     *
     * @param body
     * @return
     */
    @POST("/user/getCoupon")
    Call<CommonResult> getCouponAndReceiverInfo(@Body Object body);

    /**
     * 查询红包详情和红包发送者信息
     * 对 一对多红包使用
     *
     * @param body
     * @return
     */
    @POST("/user/getCoupon_v1")
    Call<CommonResult> getCouponAndSenderInfo(@Body Object body);

    //获取发送的红包记录
    @POST("/user/getSendCouponRecord")
    Call<CommonResult> getSendCouponRecord(@Body Object body);

    //获取记录
    @POST("/user/getReceiveCouponRecord")
    Call<CommonResult> getReceiveCouponRecord(@Body Object body);

    //获取一对多红包领取记录
    @POST("/user/getMultipleCouponReceivedRecord")
    Call<CommonResult> getMultipleCouponReceivedRecord(@Body Object body);

    @POST("/es/getCouponStatus")
    Call<CommonResult> getCouponStatus(@Body Object body);

}
